For substring , a character vector of length the longest of the arguments. This will have names taken from x (if it has any after coercion, repeated as needed), ...
As you can see, the R substring function returns a vector that contains a substring for each last point that we have specified (i.e. 1, 2, 3, 4 & 5).
2022年8月3日 — Substring() function in R is widely used to either extract the characters present in the data or to manipulate the data. You can easily extract ...
substr: Substrings of a Character Vector. Description. Extract or replace substrings in a character vector. Usage. substr(x, start, stop) substring(text, ...